#!/bin/bash


#!/bin/sh
HOST='134.74.13.193'
USER='admin'
PASSWD='admin'
FILE='mb-250.log'

ftp -n $HOST <<END_SCRIPT
quote USER $USER 
quote PASS $PASSWD
cd /var/log/modbus
get $FILE
quit

END_SCRIPT
exit 0
